/* 
* RelayHandler.h
*
* Created: 10/5/2013 5:07:49 PM
* Author: brodzki
*/

#ifndef RELAYHANDLER_H_
#define RELAYHANDLER_H_

#include <stdint.h>
#include <avr/io.h>
#include "Register.h"

class RelayHandler
{
	Register ddr_;
	Register port_;
	unsigned int bit_;
	
public:

	RelayHandler(volatile uint8_t *ddr, volatile uint8_t *port, uint8_t bit) : ddr_(ddr), port_(port), bit_(bit) {}
	void enable();
	void disable();
};

#endif // RELAYHANDLER_H_
